roots of cubic function